package com.hsc.yalebao.tabChongZhi;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnFocusChangeListener;
import android.widget.Adapter;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.PopupWindow;
import android.widget.PopupWindow.OnDismissListener;
import android.widget.ScrollView;
import android.widget.TextView;
import com.google.gson.Gson;
import com.hsc.yalebao.adapter.ChongZJinEGridViewAdapter;
import com.hsc.yalebao.adapter.ChongZhiListAdapter;
import com.hsc.yalebao.base.ActivityStack;
import com.hsc.yalebao.base.BaseActivity;
import com.hsc.yalebao.base.CustomApplication;
import com.hsc.yalebao.base.MainActivity;
import com.hsc.yalebao.base.MainWebActivity;
import com.hsc.yalebao.http.AppConstants;
import com.hsc.yalebao.http.RequestNet;
import com.hsc.yalebao.merchant.activity.PayUtils;
import com.hsc.yalebao.model.GetOauthUserStateBase;
import com.hsc.yalebao.model.NoticeBaseModel;
import com.hsc.yalebao.model.PayTypeBean;
import com.hsc.yalebao.model.PayTypeListBean;
import com.hsc.yalebao.model.ReChargeBaseData;
import com.hsc.yalebao.model.UserBaseBean;
import com.hsc.yalebao.tabIndex.CustomServiceActivity;
import com.hsc.yalebao.tabMine.BackRuleActivity;
import com.hsc.yalebao.tools.SharedPreferencesUtil;
import com.hsc.yalebao.tools.UiUtil;
import com.hsc.yalebao.weight.LogUtils;
import com.hsc.yalebao.weight.MyDialog1;
import com.zhy.http.okhttp.callback.StringCallback;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import okhttp3.Call;

public class ChongzhiActivity2 extends BaseActivity
  implements View.OnClickListener, AdapterView.OnItemClickListener
{
  public static ChongZhiFragment fragment;
  private String TAG = "ChongzhiActivity";
  private ImageView btn_zf;
  private Button btn_zf_confirm;
  private Button btn_zf_confirm1;
  private ChongZJinEGridViewAdapter chongZJinEGridViewAdapter;
  private CheckBox ck_xieyi_new;
  private View contentView;
  private Context context;
  private EditText edit_jin_e;
  private EditText edit_jin_e1;
  private EditText edit_register_introduce_new;
  private EditText edit_register_nickname_new;
  private EditText edit_register_psw_new;
  private EditText edit_register_rppsw_new;
  private EditText edit_register_username_new;
  private String guid = "";
  private ImageView img_register_new;
  boolean isInstalled = true;
  private boolean isWeixin = true;
  private boolean isWeixin3 = true;
  private boolean isZhifuBao = true;
  private boolean isZhifuBao3 = true;
  private ImageView iv_chongzhi_jilu;
  private ImageView iv_kefu;
  private ImageView iv_title_right;
  private ChongZhiListAdapter mAdapter;
  private ChongZhiListAdapter mAdapter2;
  private TextView mLoadTv;
  private String mLoginType = "1";
  private LinearLayout mXianShangLayout;
  private List<PayTypeBean> mXianShangList = new ArrayList();
  private ListView mXianShangListView;
  private LinearLayout mXianXiaLayout;
  private List<PayTypeBean> mXianXiaList = new ArrayList();
  private ListView mXianXiaListView;
  private String money = "100";
  private MyDialog1 myDialog1 = null;
  private ArrayList<NoticeBaseModel> noticeListChongZhi = new ArrayList();
  View.OnClickListener onClickListener = new View.OnClickListener()
  {
    public void onClick(View paramAnonymousView)
    {
      switch (paramAnonymousView.getId())
      {
      default:
        return;
      case 2131099699:
      }
      CustomApplication.app.finishActivity(ChongzhiActivity2.this);
    }
  };
  private String payID;
  private String registerIntroduceIdNew = "";
  private String registerNickNameNew = "";
  private String registerUserNameNew = "";
  private String registerUserPswNew = "";
  private String registerUserPswRpNew = "";
  private String registerpid;
  private ScrollView scroll_register_new;
  private int state = 0;
  private TextWatcher textWatcher = new TextWatcher()
  {
    public void afterTextChanged(Editable paramAnonymousEditable)
    {
    }

    public void beforeTextChanged(CharSequence paramAnonymousCharSequence, int paramAnonymousInt1, int paramAnonymousInt2, int paramAnonymousInt3)
    {
    }

    public void onTextChanged(CharSequence paramAnonymousCharSequence, int paramAnonymousInt1, int paramAnonymousInt2, int paramAnonymousInt3)
    {
      try
      {
        if (Integer.parseInt(ChongzhiActivity2.this.edit_jin_e1.getText().toString().trim()) > 5000000)
          ChongzhiActivity2.this.edit_jin_e1.setText("5000000");
        return;
      }
      catch (Exception localException)
      {
      }
    }
  };
  private TextView tv_forget_pwd_new;
  private TextView tv_go_register_new;
  private TextView tv_lianxi_kefu_new;
  private TextView tv_user_con_psw_tishi_new;
  private TextView tv_user_name_tishi_new;
  private TextView tv_user_nick_name_tishi_new;
  private TextView tv_user_psw_tishi_new;
  private TextView tv_xieyi_new;
  View viewRegisterNew;
  private View view_title;
  private PopupWindow window;
  private PopupWindow window1;
  PopupWindow window_register_new;
  int zhifuType = 1;
  String zhifuTypeStr = "支付宝";

  private void ChangeUserInfo()
  {
    this.registerUserNameNew = this.edit_register_username_new.getText().toString();
    this.registerUserPswNew = this.edit_register_psw_new.getText().toString();
    this.registerUserPswRpNew = this.edit_register_rppsw_new.getText().toString();
    this.registerNickNameNew = this.edit_register_nickname_new.getText().toString();
    this.registerIntroduceIdNew = this.edit_register_introduce_new.getText().toString();
    if ("".equals(this.registerUserNameNew))
    {
      this.tv_user_name_tishi_new.setText("请输入您的账号");
      this.edit_register_username_new.requestFocus();
      this.scroll_register_new.fullScroll(33);
      return;
    }
    if (!UiUtil.isValidUserName(this.registerUserNameNew))
    {
      this.tv_user_name_tishi_new.setText("账号需要6~12位字母或数字");
      this.edit_register_username_new.requestFocus();
      return;
    }
    if ("".equals(this.registerUserPswNew))
    {
      this.tv_user_psw_tishi_new.setText("请输入您的密码");
      this.edit_register_psw_new.requestFocus();
      return;
    }
    if (this.registerUserNameNew.equals(this.registerUserPswNew))
    {
      this.tv_user_psw_tishi_new.setText("账号和密码不能一致");
      this.edit_register_psw_new.requestFocus();
      return;
    }
    if (!this.registerUserPswNew.equals(this.registerUserPswRpNew))
    {
      this.tv_user_con_psw_tishi_new.setText("两次密码不一致");
      this.edit_register_rppsw_new.requestFocus();
      return;
    }
    if ("".equals(this.registerIntroduceIdNew))
      this.registerIntroduceIdNew = "0";
    if (!this.ck_xieyi_new.isChecked())
    {
      this.myDialog1.setMessage("请阅读并同意《注册协议》");
      this.myDialog1.show();
      this.myDialog1.btn_confirm.setOnClickListener(new View.OnClickListener()
      {
        public void onClick(View paramAnonymousView)
        {
          ChongzhiActivity2.this.myDialog1.dismiss();
        }
      });
      return;
    }
    this.tv_user_name_tishi_new.setText("");
    this.tv_user_psw_tishi_new.setText("");
    this.tv_user_con_psw_tishi_new.setText("");
    this.tv_user_nick_name_tishi_new.setText("");
    HashMap localHashMap = new HashMap();
    localHashMap.put("user_name", this.registerUserNameNew);
    localHashMap.put("password", this.registerUserPswRpNew);
    localHashMap.put("pid", this.registerIntroduceIdNew);
    localHashMap.put("guid", this.guid);
    RequestNet.get(this, AppConstants.URL_GET_CHANGEUSERINFO, localHashMap, new StringCallback()
    {
      public void onError(Call paramAnonymousCall, Exception paramAnonymousException)
      {
        LogUtils.e(ChongzhiActivity2.this.TAG, "获取失败ChangeUserInfo()-result:" + paramAnonymousException);
      }

      public void onResponse(String paramAnonymousString)
      {
        Gson localGson = new Gson();
        try
        {
          localGetOauthUserStateBase = (GetOauthUserStateBase)localGson.fromJson(paramAnonymousString, GetOauthUserStateBase.class);
          if (localGetOauthUserStateBase == null)
            return;
        }
        catch (Exception localException)
        {
          GetOauthUserStateBase localGetOauthUserStateBase;
          do
          {
            while (true)
            {
              localException.printStackTrace();
              localGetOauthUserStateBase = null;
            }
            if (localGetOauthUserStateBase.getFlag() == -4)
            {
              ChongzhiActivity2.activityStack.backToMain(MainActivity.class, ChongzhiActivity2.this.context);
              return;
            }
            if (localGetOauthUserStateBase.getFlag() == 0)
            {
              ChongzhiActivity2.this.myDialog1.setMessage(localGetOauthUserStateBase.getMsg());
              ChongzhiActivity2.this.myDialog1.show();
              ChongzhiActivity2.this.myDialog1.btn_confirm.setOnClickListener(new View.OnClickListener()
              {
                public void onClick(View paramAnonymous2View)
                {
                  ChongzhiActivity2.this.myDialog1.dismiss();
                }
              });
              return;
            }
            if (localGetOauthUserStateBase.getFlag() == 1)
            {
              ChongzhiActivity2.this.state = 0;
              UiUtil.showToast(ChongzhiActivity2.this, "绑定成功");
              CustomApplication.app.userBaseBean.setUser_name(ChongzhiActivity2.this.registerUserNameNew);
              CustomApplication.app.preferencesUtil.setValue(AppConstants.LOGIN_USERNAME, ChongzhiActivity2.this.registerUserNameNew);
              CustomApplication.app.preferencesUtil.setValue(AppConstants.LOGIN_PWD, ChongzhiActivity2.this.registerUserPswNew);
              ChongzhiActivity2.this.window_register_new.dismiss();
            }
            if (localGetOauthUserStateBase.getFlag() == -2)
            {
              MainActivity.mainActivity.showOffLineDialog();
              return;
            }
          }
          while (localGetOauthUserStateBase.getFlag() != -3);
          MainActivity.mainActivity.showFengjinDialog();
        }
      }
    });
  }

  private void dealPayList(List<PayTypeBean> paramList)
  {
    this.mXianShangList.clear();
    this.mXianXiaList.clear();
    Iterator localIterator = paramList.iterator();
    label70: label106: ArrayList localArrayList1;
    int j;
    label206: ArrayList localArrayList2;
    int k;
    if (!localIterator.hasNext())
    {
      if ((this.mXianShangList == null) || (this.mXianShangList.size() <= 0))
        break label348;
      this.mXianShangLayout.setVisibility(0);
      this.mLoadTv.setVisibility(8);
      if ((this.mXianXiaList == null) || (this.mXianXiaList.size() <= 0))
        break label360;
      this.mXianXiaLayout.setVisibility(0);
      this.mLoadTv.setVisibility(8);
      Comparator local24 = new Comparator()
      {
        public int compare(Object paramAnonymousObject1, Object paramAnonymousObject2)
        {
          PayTypeBean localPayTypeBean1 = (PayTypeBean)paramAnonymousObject1;
          PayTypeBean localPayTypeBean2 = (PayTypeBean)paramAnonymousObject2;
          int i = Integer.valueOf(localPayTypeBean1.getKfPartnerID()).intValue();
          int j = Integer.valueOf(localPayTypeBean2.getKfPartnerID()).intValue();
          int k;
          if (i < j)
            k = -1;
          do
          {
            do
            {
              return k;
              k = 0;
            }
            while (i == j);
            k = 0;
          }
          while (i <= j);
          return 1;
        }
      };
      Collections.sort(this.mXianShangList, local24);
      Collections.sort(this.mXianXiaList, local24);
      localArrayList1 = new ArrayList();
      j = 0;
      if (j < this.mXianShangList.size())
        break label372;
      if (this.mAdapter != null)
        break label436;
      this.mAdapter = new ChongZhiListAdapter(this, this.mXianShangList, "2");
      this.mAdapter.setmCheckList(localArrayList1);
      this.mXianShangListView.setAdapter(this.mAdapter);
      localArrayList2 = new ArrayList();
      k = 0;
      if (k < this.mXianXiaList.size())
        break label455;
      if (this.mAdapter2 != null)
        break label493;
      this.mAdapter2 = new ChongZhiListAdapter(this, this.mXianXiaList, "1");
      this.mAdapter2.setmCheckList(localArrayList2);
      this.mXianXiaListView.setAdapter(this.mAdapter2);
    }
    while (true)
    {
      BackRuleActivity.setListViewHeightBasedOnChildren(this.mXianShangListView);
      BackRuleActivity.setListViewHeightBasedOnChildren(this.mXianXiaListView);
      return;
      PayTypeBean localPayTypeBean = (PayTypeBean)localIterator.next();
      int i = localPayTypeBean.getType();
      if (i == 1)
      {
        this.mXianXiaList.add(localPayTypeBean);
        break;
      }
      if (i != 2)
        break;
      this.mXianShangList.add(localPayTypeBean);
      break;
      label348: this.mXianShangLayout.setVisibility(8);
      break label70;
      label360: this.mXianXiaLayout.setVisibility(8);
      break label106;
      label372: if (j == 0)
      {
        this.zhifuType = Integer.valueOf(((PayTypeBean)this.mXianShangList.get(0)).getIsSdkEffective()).intValue();
        localArrayList1.add(Boolean.valueOf(true));
      }
      while (true)
      {
        j++;
        break;
        localArrayList1.add(Boolean.valueOf(false));
      }
      label436: this.mAdapter.setmCheckList(localArrayList1);
      this.mAdapter.notifyDataSetChanged();
      break label206;
      label455: if (k == 0)
        localArrayList2.add(Boolean.valueOf(true));
      while (true)
      {
        k++;
        break;
        localArrayList2.add(Boolean.valueOf(false));
      }
      label493: this.mAdapter2.setmCheckList(localArrayList2);
      this.mAdapter2.notifyDataSetChanged();
    }
  }

  private void getPay(final String paramString1, final String paramString2)
  {
    HashMap localHashMap = new HashMap();
    localHashMap.put("amount", paramString2);
    localHashMap.put("guid", this.guid);
    localHashMap.put("client_Ip", CustomApplication.app.NetIP);
    localHashMap.put("payment_id", this.zhifuType);
    localHashMap.put("pay_sn", "");
    setSureBtnIsEnable(false);
    RequestNet.get(this.context, AppConstants.URL_RECHARGE, localHashMap, new StringCallback()
    {
      public void onError(Call paramAnonymousCall, Exception paramAnonymousException)
      {
        ChongzhiActivity2.this.setSureBtnIsEnable(true);
        LogUtils.e(ChongzhiActivity2.this.TAG, "获取失败getPay()-result:" + paramAnonymousException);
      }

      public void onResponse(String paramAnonymousString)
      {
        ChongzhiActivity2.this.setSureBtnIsEnable(true);
        Gson localGson = new Gson();
        try
        {
          localReChargeBaseData = (ReChargeBaseData)localGson.fromJson(paramAnonymousString, ReChargeBaseData.class);
          if (localReChargeBaseData == null)
            return;
        }
        catch (Exception localException1)
        {
          ReChargeBaseData localReChargeBaseData;
          do
          {
            while (true)
            {
              localException1.printStackTrace();
              localReChargeBaseData = null;
            }
            if (localReChargeBaseData.getFlag() == -4)
            {
              ChongzhiActivity2.activityStack.backToMain(MainActivity.class, ChongzhiActivity2.this.context);
              return;
            }
            if (localReChargeBaseData.getFlag() == 0)
            {
              ChongzhiActivity2.this.myDialog1.setMessage(localReChargeBaseData.getMsg());
              ChongzhiActivity2.this.myDialog1.show();
              ChongzhiActivity2.this.myDialog1.btn_confirm.setOnClickListener(new View.OnClickListener()
              {
                public void onClick(View paramAnonymous2View)
                {
                  ChongzhiActivity2.this.myDialog1.dismiss();
                  CustomApplication.app.finishActivity(ChongzhiActivity2.this);
                }
              });
              return;
            }
            if (localReChargeBaseData.getFlag() == -2)
            {
              ChongzhiActivity2.this.showDownWireDialog();
              return;
            }
            if (localReChargeBaseData.getFlag() == -3)
            {
              ChongzhiActivity2.this.ShowFengjinDialog();
              return;
            }
          }
          while (localReChargeBaseData.getFlag() != 1);
          String str1 = localReChargeBaseData.getResult();
          LogUtils.d("获取成功", "getPay()-result:" + str1);
          Intent localIntent;
          if ("yinlian".equals(paramString1))
          {
            if (ChongzhiActivity2.this.window1.isShowing())
              ChongzhiActivity2.this.window1.dismiss();
            if (!CustomApplication.app.isLogin)
              break label586;
            localIntent = new Intent();
            localIntent.setClass(ChongzhiActivity2.this.context, MainWebActivity.class);
            switch (ChongzhiActivity2.this.zhifuType)
            {
            case 6:
            case 7:
            case 9:
            case 10:
            default:
            case 4:
            case 5:
            case 8:
            case 11:
            }
          }
          while (true)
          {
            CustomApplication.app.finishActivity(ChongzhiActivity2.this);
            return;
            if (!ChongzhiActivity2.this.window.isShowing())
              break;
            ChongzhiActivity2.this.window.dismiss();
            break;
            String str4 = localReChargeBaseData.getPayurl();
            localIntent.putExtra("title", "银联支付");
            localIntent.putExtra("url", str4);
            localIntent.putExtra("payNo", str1);
            ChongzhiActivity2.this.startActivity(localIntent);
            continue;
            try
            {
              PayUtils.pay(ChongzhiActivity2.this, localReChargeBaseData.getResult(), localReChargeBaseData.getPayurl(), paramString2);
            }
            catch (Exception localException2)
            {
              localException2.printStackTrace();
              UiUtil.showToast(ChongzhiActivity2.this, "网络异常，请稍后重试");
            }
            continue;
            String str3 = localReChargeBaseData.getPayurl();
            localIntent.putExtra("title", "支付宝充值");
            localIntent.putExtra("url", str3);
            localIntent.putExtra("payNo", str1);
            ChongzhiActivity2.this.startActivity(localIntent);
            continue;
            String str2 = localReChargeBaseData.getPayurl();
            localIntent.putExtra("title", "支付宝充值");
            localIntent.putExtra("url", str2);
            localIntent.putExtra("payNo", str1);
            ChongzhiActivity2.this.startActivity(localIntent);
          }
          label586: LogUtils.d(" getPay()", "getPay()-没有登陆");
        }
      }
    });
  }

  private void setSureBtnIsEnable(boolean paramBoolean)
  {
    if (paramBoolean)
    {
      if (this.btn_zf_confirm != null)
        this.btn_zf_confirm.setBackgroundResource(2130838215);
      if (this.btn_zf_confirm1 != null)
        this.btn_zf_confirm1.setBackgroundResource(2130838215);
    }
    while (true)
    {
      if (this.btn_zf_confirm != null)
        this.btn_zf_confirm.setEnabled(paramBoolean);
      if (this.btn_zf_confirm1 != null)
        this.btn_zf_confirm1.setEnabled(paramBoolean);
      return;
      if (this.btn_zf_confirm1 != null)
        this.btn_zf_confirm1.setBackgroundResource(2130838087);
      if (this.btn_zf_confirm != null)
        this.btn_zf_confirm.setBackgroundResource(2130838087);
    }
  }

  private void showNewuserRegisterPopwindow()
  {
    this.viewRegisterNew.bringToFront();
    this.scroll_register_new = ((ScrollView)this.viewRegisterNew.findViewById(2131100190));
    (4 * CustomApplication.app.displayMetrics.widthPixels / 3);
    if (this.window_register_new == null)
      this.window_register_new = new PopupWindow(this.viewRegisterNew, -1, -1);
    this.window_register_new.setFocusable(true);
    this.window_register_new.setOutsideTouchable(true);
    ImageView localImageView = (ImageView)this.viewRegisterNew.findViewById(2131100198);
    localImageView.bringToFront();
    localImageView.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        ChongzhiActivity2.this.window_register_new.dismiss();
      }
    });
    this.tv_user_name_tishi_new = ((TextView)this.viewRegisterNew.findViewById(2131100199));
    this.tv_user_psw_tishi_new = ((TextView)this.viewRegisterNew.findViewById(2131100201));
    this.tv_user_con_psw_tishi_new = ((TextView)this.viewRegisterNew.findViewById(2131100203));
    this.tv_user_nick_name_tishi_new = ((TextView)this.viewRegisterNew.findViewById(2131100207));
    this.tv_xieyi_new = ((TextView)this.viewRegisterNew.findViewById(2131100210));
    this.ck_xieyi_new = ((CheckBox)this.viewRegisterNew.findViewById(2131100209));
    this.ck_xieyi_new.setChecked(false);
    this.tv_xieyi_new.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        ChongzhiActivity2.this.viewRegisterNew.bringToFront();
        Intent localIntent = new Intent();
        localIntent.setClass(ChongzhiActivity2.this, MainWebActivity.class);
        localIntent.putExtra("url", AppConstants.BASE_URL_IMG + "/wap/xy.html");
        localIntent.putExtra("title", "注册协议");
        ChongzhiActivity2.this.startActivity(localIntent);
      }
    });
    this.tv_lianxi_kefu_new = ((TextView)this.viewRegisterNew.findViewById(2131100211));
    this.tv_lianxi_kefu_new.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        ChongzhiActivity2.this.viewRegisterNew.bringToFront();
        ChongzhiActivity2.this.startActivity(new Intent(ChongzhiActivity2.this, CustomServiceActivity.class));
      }
    });
    this.edit_register_username_new = ((EditText)this.viewRegisterNew.findViewById(2131100200));
    this.edit_register_username_new.setOnFocusChangeListener(new View.OnFocusChangeListener()
    {
      public void onFocusChange(View paramAnonymousView, boolean paramAnonymousBoolean)
      {
        ChongzhiActivity2.this.registerUserNameNew = ChongzhiActivity2.this.edit_register_username_new.getText().toString();
        if (!ChongzhiActivity2.this.edit_register_username_new.hasFocus())
        {
          if ("".equals(ChongzhiActivity2.this.registerUserNameNew))
            ChongzhiActivity2.this.tv_user_name_tishi_new.setText("请输入您的账号");
        }
        else
          return;
        if (!UiUtil.isValidUserName(ChongzhiActivity2.this.registerUserNameNew))
        {
          ChongzhiActivity2.this.tv_user_name_tishi_new.setText("账号需要6~12位字符或数字");
          return;
        }
        ChongzhiActivity2.this.tv_user_name_tishi_new.setText("");
      }
    });
    this.edit_register_psw_new = ((EditText)this.viewRegisterNew.findViewById(2131100202));
    this.edit_register_psw_new.setOnFocusChangeListener(new View.OnFocusChangeListener()
    {
      public void onFocusChange(View paramAnonymousView, boolean paramAnonymousBoolean)
      {
        ChongzhiActivity2.this.registerUserPswNew = ChongzhiActivity2.this.edit_register_psw_new.getText().toString();
        if (!ChongzhiActivity2.this.edit_register_psw_new.hasFocus())
        {
          if ("".equals(ChongzhiActivity2.this.registerUserPswNew))
            ChongzhiActivity2.this.tv_user_name_tishi_new.setText("请输入您的密码");
        }
        else
          return;
        if (!UiUtil.isValidUserName(ChongzhiActivity2.this.registerUserPswNew))
        {
          ChongzhiActivity2.this.tv_user_name_tishi_new.setText("密码需要6~12位字符或数字");
          return;
        }
        if (ChongzhiActivity2.this.registerUserNameNew.equals(ChongzhiActivity2.this.registerUserPswNew))
        {
          ChongzhiActivity2.this.tv_user_name_tishi_new.setText("账号和密码不能一致");
          return;
        }
        ChongzhiActivity2.this.tv_user_name_tishi_new.setText("");
      }
    });
    this.edit_register_rppsw_new = ((EditText)this.viewRegisterNew.findViewById(2131100204));
    this.edit_register_rppsw_new.setOnFocusChangeListener(new View.OnFocusChangeListener()
    {
      public void onFocusChange(View paramAnonymousView, boolean paramAnonymousBoolean)
      {
        ChongzhiActivity2.this.registerUserPswRpNew = ChongzhiActivity2.this.edit_register_rppsw_new.getText().toString();
        if (!ChongzhiActivity2.this.edit_register_rppsw_new.hasFocus())
        {
          if (!ChongzhiActivity2.this.registerUserPswNew.equals(ChongzhiActivity2.this.registerUserPswRpNew))
            ChongzhiActivity2.this.tv_user_name_tishi_new.setText("两次密码不一致");
        }
        else
          return;
        ChongzhiActivity2.this.tv_user_name_tishi_new.setText("");
      }
    });
    this.edit_register_introduce_new = ((EditText)this.viewRegisterNew.findViewById(2131100206));
    this.registerpid = this.edit_register_introduce_new.getText().toString().trim();
    this.edit_register_nickname_new = ((EditText)this.viewRegisterNew.findViewById(2131100208));
    this.edit_register_nickname_new.setVisibility(8);
    this.edit_register_nickname_new.setOnFocusChangeListener(new View.OnFocusChangeListener()
    {
      public void onFocusChange(View paramAnonymousView, boolean paramAnonymousBoolean)
      {
        ChongzhiActivity2.this.registerNickNameNew = ChongzhiActivity2.this.edit_register_nickname_new.getText().toString();
        LogUtils.e(ChongzhiActivity2.this.TAG, "registerNickName：" + ChongzhiActivity2.this.registerNickNameNew);
        if (!ChongzhiActivity2.this.edit_register_nickname_new.hasFocus())
        {
          if ("".equals(ChongzhiActivity2.this.registerNickNameNew))
            ChongzhiActivity2.this.tv_user_nick_name_tishi_new.setText("请输入您的昵称");
        }
        else
          return;
        if (!UiUtil.isContainsChinese(ChongzhiActivity2.this.registerNickNameNew))
        {
          ChongzhiActivity2.this.tv_user_nick_name_tishi_new.setText("昵称需要包含中文");
          return;
        }
        ChongzhiActivity2.this.tv_user_nick_name_tishi_new.setText("");
      }
    });
    this.window_register_new.setSoftInputMode(16);
    this.img_register_new.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        ChongzhiActivity2.this.ChangeUserInfo();
      }
    });
    this.window_register_new.setBackgroundDrawable(getResources().getDrawable(2130837534));
    this.window_register_new.setAnimationStyle(2131361795);
    this.window_register_new.showAtLocation(this.contentView, 17, 0, 60);
    this.window_register_new.setOnDismissListener(new PopupWindow.OnDismissListener()
    {
      public void onDismiss()
      {
        ChongzhiActivity2.this.edit_register_username_new.setText("");
        ChongzhiActivity2.this.edit_register_psw_new.setText("");
        ChongzhiActivity2.this.edit_register_rppsw_new.setText("");
        ChongzhiActivity2.this.edit_register_nickname_new.setText("");
        ChongzhiActivity2.this.edit_register_introduce_new.setText("");
        ChongzhiActivity2.this.tv_user_name_tishi_new.setText("");
        ChongzhiActivity2.this.tv_user_psw_tishi_new.setText("");
        ChongzhiActivity2.this.tv_user_con_psw_tishi_new.setText("");
        ChongzhiActivity2.this.tv_user_nick_name_tishi_new.setText("");
      }
    });
  }

  private void showZhifuPopwindow()
  {
    View localView = LayoutInflater.from(this.context).inflate(2130903168, null);
    (9 * (8 * (CustomApplication.app.displayMetrics.widthPixels / 10) / 10));
    PopupWindow localPopupWindow1 = new PopupWindow(localView, -1, -1);
    this.window = localPopupWindow1;
    this.window.setFocusable(true);
    ((TextView)localView.findViewById(2131100224)).setText(this.zhifuTypeStr);
    ((LinearLayout)localView.findViewById(2131100177));
    this.edit_jin_e = ((EditText)localView.findViewById(2131100225));
    this.edit_jin_e.setVisibility(8);
    GridView localGridView = (GridView)localView.findViewById(2131100226);
    this.noticeListChongZhi.clear();
    NoticeBaseModel localNoticeBaseModel1 = new NoticeBaseModel();
    localNoticeBaseModel1.setName("10");
    this.noticeListChongZhi.add(localNoticeBaseModel1);
    NoticeBaseModel localNoticeBaseModel2 = new NoticeBaseModel();
    localNoticeBaseModel2.setName("50");
    this.noticeListChongZhi.add(localNoticeBaseModel2);
    NoticeBaseModel localNoticeBaseModel3 = new NoticeBaseModel();
    localNoticeBaseModel3.setName("100");
    this.noticeListChongZhi.add(localNoticeBaseModel3);
    NoticeBaseModel localNoticeBaseModel4 = new NoticeBaseModel();
    localNoticeBaseModel4.setName("200");
    this.noticeListChongZhi.add(localNoticeBaseModel4);
    NoticeBaseModel localNoticeBaseModel5 = new NoticeBaseModel();
    localNoticeBaseModel5.setName("500");
    this.noticeListChongZhi.add(localNoticeBaseModel5);
    NoticeBaseModel localNoticeBaseModel6 = new NoticeBaseModel();
    localNoticeBaseModel6.setName("1000");
    this.noticeListChongZhi.add(localNoticeBaseModel6);
    NoticeBaseModel localNoticeBaseModel7 = new NoticeBaseModel();
    localNoticeBaseModel7.setName("2000");
    this.noticeListChongZhi.add(localNoticeBaseModel7);
    NoticeBaseModel localNoticeBaseModel8 = new NoticeBaseModel();
    localNoticeBaseModel8.setName("5000");
    this.noticeListChongZhi.add(localNoticeBaseModel8);
    if (this.chongZJinEGridViewAdapter == null)
    {
      this.chongZJinEGridViewAdapter = new ChongZJinEGridViewAdapter(this.context, this.noticeListChongZhi);
      this.chongZJinEGridViewAdapter.notifyDataSetChanged();
    }
    localGridView.setAdapter(this.chongZJinEGridViewAdapter);
    AdapterView.OnItemClickListener local3 = new AdapterView.OnItemClickListener()
    {
      public void onItemClick(AdapterView<?> paramAnonymousAdapterView, View paramAnonymousView, int paramAnonymousInt, long paramAnonymousLong)
      {
        try
        {
          ChongzhiActivity2.this.chongZJinEGridViewAdapter.setSelection(paramAnonymousInt);
          ChongzhiActivity2.this.chongZJinEGridViewAdapter.notifyDataSetChanged();
          NoticeBaseModel localNoticeBaseModel = (NoticeBaseModel)ChongzhiActivity2.this.noticeListChongZhi.get(paramAnonymousInt);
          ChongzhiActivity2.this.money = localNoticeBaseModel.getName();
          LogUtils.d("onItemClickListener", ChongzhiActivity2.this.money);
          return;
        }
        catch (Exception localException)
        {
          localException.printStackTrace();
        }
      }
    };
    localGridView.setOnItemClickListener(local3);
    this.window.setSoftInputMode(16);
    this.btn_zf_confirm = ((Button)localView.findViewById(2131100227));
    Button localButton = this.btn_zf_confirm;
    View.OnClickListener local4 = new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        ChongzhiActivity2.this.getPay("zhifubao", ChongzhiActivity2.this.money);
      }
    };
    localButton.setOnClickListener(local4);
    ImageView localImageView = (ImageView)localView.findViewById(2131100198);
    localImageView.bringToFront();
    View.OnClickListener local5 = new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        if (ChongzhiActivity2.this.window.isShowing())
          ChongzhiActivity2.this.window.dismiss();
      }
    };
    localImageView.setOnClickListener(local5);
    this.window.setAnimationStyle(2131361795);
    this.window.setBackgroundDrawable(this.context.getResources().getDrawable(2130837534));
    this.window.showAtLocation(this.contentView, 17, 0, 60);
    PopupWindow localPopupWindow2 = this.window;
    PopupWindow.OnDismissListener local6 = new PopupWindow.OnDismissListener()
    {
      public void onDismiss()
      {
      }
    };
    localPopupWindow2.setOnDismissListener(local6);
  }

  private void showyinlianPopwindow()
  {
    View localView = LayoutInflater.from(this.context).inflate(2130903169, null);
    (9 * (8 * (CustomApplication.app.displayMetrics.widthPixels / 10) / 10));
    PopupWindow localPopupWindow1 = new PopupWindow(localView, -1, -1);
    this.window1 = localPopupWindow1;
    this.window1.setFocusable(true);
    ((TextView)localView.findViewById(2131100224)).setText(this.zhifuTypeStr);
    ((LinearLayout)localView.findViewById(2131100177)).setBackgroundResource(2130837516);
    this.edit_jin_e1 = ((EditText)localView.findViewById(2131100225));
    this.edit_jin_e1.addTextChangedListener(this.textWatcher);
    GridView localGridView = (GridView)localView.findViewById(2131100226);
    this.noticeListChongZhi.clear();
    NoticeBaseModel localNoticeBaseModel1 = new NoticeBaseModel();
    localNoticeBaseModel1.setName("10");
    this.noticeListChongZhi.add(localNoticeBaseModel1);
    NoticeBaseModel localNoticeBaseModel2 = new NoticeBaseModel();
    localNoticeBaseModel2.setName("50");
    this.noticeListChongZhi.add(localNoticeBaseModel2);
    NoticeBaseModel localNoticeBaseModel3 = new NoticeBaseModel();
    localNoticeBaseModel3.setName("100");
    this.noticeListChongZhi.add(localNoticeBaseModel3);
    NoticeBaseModel localNoticeBaseModel4 = new NoticeBaseModel();
    localNoticeBaseModel4.setName("200");
    this.noticeListChongZhi.add(localNoticeBaseModel4);
    NoticeBaseModel localNoticeBaseModel5 = new NoticeBaseModel();
    localNoticeBaseModel5.setName("500");
    this.noticeListChongZhi.add(localNoticeBaseModel5);
    NoticeBaseModel localNoticeBaseModel6 = new NoticeBaseModel();
    localNoticeBaseModel6.setName("1000");
    this.noticeListChongZhi.add(localNoticeBaseModel6);
    NoticeBaseModel localNoticeBaseModel7 = new NoticeBaseModel();
    localNoticeBaseModel7.setName("2000");
    this.noticeListChongZhi.add(localNoticeBaseModel7);
    NoticeBaseModel localNoticeBaseModel8 = new NoticeBaseModel();
    localNoticeBaseModel8.setName("5000");
    this.noticeListChongZhi.add(localNoticeBaseModel8);
    if (this.chongZJinEGridViewAdapter == null)
    {
      this.chongZJinEGridViewAdapter = new ChongZJinEGridViewAdapter(this.context, this.noticeListChongZhi);
      this.chongZJinEGridViewAdapter.notifyDataSetChanged();
    }
    localGridView.setAdapter(this.chongZJinEGridViewAdapter);
    this.window1.setSoftInputMode(16);
    this.btn_zf_confirm1 = ((Button)localView.findViewById(2131100227));
    Button localButton = this.btn_zf_confirm1;
    View.OnClickListener local7 = new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        String str = ChongzhiActivity2.this.edit_jin_e1.getText().toString().trim();
        try
        {
          if ("".equals(str))
          {
            UiUtil.showToast(ChongzhiActivity2.this.context, "请填写您的充值金额");
            return;
          }
          if (Integer.parseInt(str) < 10)
          {
            UiUtil.showToast(ChongzhiActivity2.this.context, "充值金额最低10元");
            return;
          }
        }
        catch (Exception localException)
        {
          localException.printStackTrace();
          return;
        }
        ChongzhiActivity2.this.getPay("yinlian", str);
      }
    };
    localButton.setOnClickListener(local7);
    ImageView localImageView = (ImageView)localView.findViewById(2131100198);
    localImageView.bringToFront();
    View.OnClickListener local8 = new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        if (ChongzhiActivity2.this.window1.isShowing())
          ChongzhiActivity2.this.window1.dismiss();
      }
    };
    localImageView.setOnClickListener(local8);
    this.window1.setAnimationStyle(2131361795);
    this.window1.setBackgroundDrawable(this.context.getResources().getDrawable(2130837534));
    this.window1.showAtLocation(this.contentView, 17, 0, 60);
    PopupWindow localPopupWindow2 = this.window1;
    PopupWindow.OnDismissListener local9 = new PopupWindow.OnDismissListener()
    {
      public void onDismiss()
      {
      }
    };
    localPopupWindow2.setOnDismissListener(local9);
  }

  public void getPayTypeList()
  {
    HashMap localHashMap = new HashMap();
    if (CustomApplication.app.userBaseBean == null)
      return;
    localHashMap.put("memberid", CustomApplication.app.userBaseBean.getMemberid());
    RequestNet.get(this, AppConstants.URL_GETPAYSTATE, localHashMap, new StringCallback()
    {
      public void onError(Call paramAnonymousCall, Exception paramAnonymousException)
      {
        LogUtils.e(ChongzhiActivity2.this.TAG, "获取失败getoauthuserstate()-result:" + paramAnonymousException);
      }

      public void onResponse(String paramAnonymousString)
      {
        Gson localGson = new Gson();
        try
        {
          localPayTypeListBean = (PayTypeListBean)localGson.fromJson(paramAnonymousString, PayTypeListBean.class);
          if (localPayTypeListBean == null)
            return;
        }
        catch (Exception localException)
        {
          PayTypeListBean localPayTypeListBean;
          do
          {
            while (true)
            {
              localException.printStackTrace();
              localPayTypeListBean = null;
            }
            if (localPayTypeListBean.getFlag() == -4)
            {
              ActivityStack.getInstance().backToMain(MainActivity.class, ChongzhiActivity2.this);
              return;
            }
            if (localPayTypeListBean.getFlag() == 0)
            {
              ChongzhiActivity2.this.myDialog1.setMessage(localPayTypeListBean.getMsg());
              ChongzhiActivity2.this.myDialog1.show();
              ChongzhiActivity2.this.myDialog1.btn_confirm.setOnClickListener(new View.OnClickListener()
              {
                public void onClick(View paramAnonymous2View)
                {
                  ChongzhiActivity2.this.myDialog1.dismiss();
                }
              });
              return;
            }
            if (localPayTypeListBean.getFlag() == -2)
            {
              MainActivity.mainActivity.showOffLineDialog();
              return;
            }
            if (localPayTypeListBean.getFlag() == -3)
            {
              MainActivity.mainActivity.showFengjinDialog();
              return;
            }
          }
          while (localPayTypeListBean.getFlag() != 1);
          ChongzhiActivity2.this.dealPayList(localPayTypeListBean.getResult());
        }
      }
    });
  }

  public void getoauthuserstate()
  {
    showLoadingDialog();
    HashMap localHashMap = new HashMap();
    localHashMap.put("guid", this.guid);
    RequestNet.get(this, AppConstants.URL_GET_GETOAUTHUSERSTATE, localHashMap, new StringCallback()
    {
      public void onError(Call paramAnonymousCall, Exception paramAnonymousException)
      {
        ChongzhiActivity2.this.dismissLoadingDialog();
        LogUtils.e(ChongzhiActivity2.this.TAG, "获取失败getoauthuserstate()-result:" + paramAnonymousException);
      }

      public void onResponse(String paramAnonymousString)
      {
        ChongzhiActivity2.this.dismissLoadingDialog();
        Gson localGson = new Gson();
        try
        {
          localGetOauthUserStateBase = (GetOauthUserStateBase)localGson.fromJson(paramAnonymousString, GetOauthUserStateBase.class);
          if (localGetOauthUserStateBase == null)
            return;
        }
        catch (Exception localException)
        {
          GetOauthUserStateBase localGetOauthUserStateBase;
          do
          {
            while (true)
            {
              localException.printStackTrace();
              localGetOauthUserStateBase = null;
            }
            if (localGetOauthUserStateBase.getFlag() == -4)
            {
              ChongzhiActivity2.activityStack.backToMain(MainActivity.class, ChongzhiActivity2.this.context);
              return;
            }
            if (localGetOauthUserStateBase.getFlag() == 0)
            {
              ChongzhiActivity2.this.myDialog1.setMessage(localGetOauthUserStateBase.getMsg());
              ChongzhiActivity2.this.myDialog1.show();
              ChongzhiActivity2.this.myDialog1.btn_confirm.setOnClickListener(new View.OnClickListener()
              {
                public void onClick(View paramAnonymous2View)
                {
                  ChongzhiActivity2.this.myDialog1.dismiss();
                }
              });
              return;
            }
            if (localGetOauthUserStateBase.getFlag() == -2)
            {
              MainActivity.mainActivity.showOffLineDialog();
              return;
            }
            if (localGetOauthUserStateBase.getFlag() == -3)
            {
              MainActivity.mainActivity.showFengjinDialog();
              return;
            }
          }
          while (localGetOauthUserStateBase.getFlag() != 1);
          ChongzhiActivity2.this.state = localGetOauthUserStateBase.getState();
        }
      }
    });
  }

  public void init()
  {
    this.mXianShangListView = ((ListView)this.contentView.findViewById(2131099805));
    this.mXianXiaListView = ((ListView)this.contentView.findViewById(2131099806));
    this.mXianShangListView.setOnItemClickListener(this);
    this.mXianXiaListView.setOnItemClickListener(this);
    this.mXianShangLayout = ((LinearLayout)this.contentView.findViewById(2131099804));
    this.mXianXiaLayout = ((LinearLayout)this.contentView.findViewById(2131099794));
    this.mLoadTv = ((TextView)this.contentView.findViewById(2131099803));
    this.mXianShangLayout.setVisibility(8);
    this.mXianXiaLayout.setVisibility(8);
    this.mLoadTv.setVisibility(0);
    setTitle(8, 0, 2130837809, "充值", 0, 8, 8, 0, true);
    this.myDialog1 = new MyDialog1(this.context);
    this.iv_kefu = ((ImageView)findViewById(2131099802));
    this.iv_kefu.setOnClickListener(this);
    this.btn_zf = ((ImageView)this.contentView.findViewById(2131099792));
    this.btn_zf.setOnClickListener(this);
    if (CustomApplication.app.userBaseBean != null)
    {
      this.payID = CustomApplication.app.userBaseBean.getPayId();
      this.guid = CustomApplication.app.userBaseBean.getGuid();
    }
    LogUtils.i(this.TAG, "payID:" + this.payID);
    this.iv_chongzhi_jilu = ((ImageView)this.contentView.findViewById(2131099801));
    this.iv_chongzhi_jilu.setOnClickListener(this);
    this.viewRegisterNew = LayoutInflater.from(this).inflate(2130903163, null);
    this.img_register_new = ((ImageView)this.viewRegisterNew.findViewById(2131100212));
  }

  public void onClick(View paramView)
  {
    switch (paramView.getId())
    {
    default:
      return;
    case 2131099802:
      startActivity(new Intent(this, CustomServiceActivity.class));
      return;
    case 2131099801:
      startActivity(new Intent(this, XianxiaTijiaoJiluActivity.class));
      return;
    case 2131099792:
    }
    if ((this.mLoginType.equals("2")) && (this.state == 1))
    {
      showNewuserRegisterPopwindow();
      return;
    }
    switch (this.zhifuType)
    {
    default:
      ShowDialog1("使用此支付方式必须更新至最新版本！");
      return;
    case 7:
      Intent localIntent18 = new Intent(this, weixinpayActivity.class);
      localIntent18.putExtra("type", "zhifubao");
      localIntent18.putExtra("isZhifubao", this.isZhifuBao);
      localIntent18.putExtra("id", 7);
      localIntent18.putExtra("paytype", "7");
      localIntent18.putExtra("isWeixin", this.isWeixin);
      localIntent18.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent18);
      return;
    case 6:
      Intent localIntent17 = new Intent(this, weixinpayActivity.class);
      localIntent17.putExtra("type", "weixin");
      localIntent17.putExtra("id", 6);
      localIntent17.putExtra("paytype", "6");
      localIntent17.putExtra("isZhifubao", this.isZhifuBao);
      localIntent17.putExtra("isWeixin", this.isWeixin);
      localIntent17.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent17);
      return;
    case 4:
      this.zhifuTypeStr = "银联支付";
      showyinlianPopwindow();
      return;
    case 5:
      this.zhifuTypeStr = "银联支付";
      showyinlianPopwindow();
      return;
    case 8:
      this.zhifuTypeStr = "支付宝支付";
      showyinlianPopwindow();
      return;
    case 11:
      this.zhifuTypeStr = "支付宝支付";
      showyinlianPopwindow();
      return;
    case 9:
      Intent localIntent16 = new Intent(this, weixinpayActivity.class);
      localIntent16.putExtra("type", "zhifubao");
      localIntent16.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent16.putExtra("paytype", "9");
      localIntent16.putExtra("id", 9);
      localIntent16.putExtra("isWeixin", this.isWeixin3);
      localIntent16.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent16);
      return;
    case 10:
      Intent localIntent15 = new Intent(this, weixinpayActivity.class);
      localIntent15.putExtra("type", "weixin");
      localIntent15.putExtra("paytype", "10");
      localIntent15.putExtra("id", 10);
      localIntent15.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent15.putExtra("isWeixin", this.isWeixin3);
      localIntent15.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent15);
      return;
    case 12:
      Intent localIntent14 = new Intent(this, weixinpayActivity.class);
      localIntent14.putExtra("type", "zhifubao");
      localIntent14.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent14.putExtra("paytype", "12");
      localIntent14.putExtra("id", 12);
      localIntent14.putExtra("isWeixin", this.isWeixin3);
      localIntent14.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent14);
      return;
    case 13:
      Intent localIntent13 = new Intent(this, weixinpayActivity.class);
      localIntent13.putExtra("type", "weixin");
      localIntent13.putExtra("paytype", "13");
      localIntent13.putExtra("id", 13);
      localIntent13.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent13.putExtra("isWeixin", this.isWeixin3);
      localIntent13.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent13);
      return;
    case 14:
      Intent localIntent12 = new Intent(this, weixinpayActivity.class);
      localIntent12.putExtra("type", "zhifubao");
      localIntent12.putExtra("paytype", "14");
      localIntent12.putExtra("id", 14);
      localIntent12.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent12.putExtra("isWeixin", this.isWeixin3);
      localIntent12.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent12);
      return;
    case 15:
      Intent localIntent11 = new Intent(this, weixinpayActivity.class);
      localIntent11.putExtra("type", "weixin");
      localIntent11.putExtra("paytype", "15");
      localIntent11.putExtra("id", 15);
      localIntent11.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent11.putExtra("isWeixin", this.isWeixin3);
      localIntent11.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent11);
    case 16:
      Intent localIntent10 = new Intent(this, weixinpayActivity.class);
      localIntent10.putExtra("type", "zhifubao");
      localIntent10.putExtra("paytype", "16");
      localIntent10.putExtra("id", 16);
      localIntent10.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent10.putExtra("isWeixin", this.isWeixin3);
      localIntent10.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent10);
      return;
    case 17:
      Intent localIntent9 = new Intent(this, weixinpayActivity.class);
      localIntent9.putExtra("type", "weixin");
      localIntent9.putExtra("paytype", "17");
      localIntent9.putExtra("id", 17);
      localIntent9.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent9.putExtra("isWeixin", this.isWeixin3);
      localIntent9.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent9);
      return;
    case 18:
      Intent localIntent8 = new Intent(this, weixinpayActivity.class);
      localIntent8.putExtra("type", "zhifubao");
      localIntent8.putExtra("paytype", "18");
      localIntent8.putExtra("id", 18);
      localIntent8.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent8.putExtra("isWeixin", this.isWeixin3);
      localIntent8.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent8);
      return;
    case 19:
      Intent localIntent7 = new Intent(this, weixinpayActivity.class);
      localIntent7.putExtra("type", "weixin");
      localIntent7.putExtra("paytype", "19");
      localIntent7.putExtra("id", 19);
      localIntent7.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent7.putExtra("isWeixin", this.isWeixin3);
      localIntent7.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent7);
      return;
    case 20:
      Intent localIntent6 = new Intent(this, weixinpayActivity.class);
      localIntent6.putExtra("type", "zhifubao");
      localIntent6.putExtra("paytype", "20");
      localIntent6.putExtra("id", 20);
      localIntent6.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent6.putExtra("isWeixin", this.isWeixin3);
      localIntent6.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent6);
      return;
    case 21:
      Intent localIntent5 = new Intent(this, weixinpayActivity.class);
      localIntent5.putExtra("type", "weixin");
      localIntent5.putExtra("paytype", "21");
      localIntent5.putExtra("id", 21);
      localIntent5.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent5.putExtra("isWeixin", this.isWeixin3);
      localIntent5.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent5);
      return;
    case 22:
      Intent localIntent4 = new Intent(this, weixinpayActivity.class);
      localIntent4.putExtra("type", "zhifubao");
      localIntent4.putExtra("paytype", "22");
      localIntent4.putExtra("id", 22);
      localIntent4.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent4.putExtra("isWeixin", this.isWeixin3);
      localIntent4.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent4);
      return;
    case 23:
      Intent localIntent3 = new Intent(this, weixinpayActivity.class);
      localIntent3.putExtra("type", "weixin");
      localIntent3.putExtra("paytype", "23");
      localIntent3.putExtra("id", 23);
      localIntent3.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent3.putExtra("isWeixin", this.isWeixin3);
      localIntent3.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent3);
      return;
    case 24:
      Intent localIntent2 = new Intent(this, weixinpayActivity.class);
      localIntent2.putExtra("type", "zhifubao");
      localIntent2.putExtra("paytype", "24");
      localIntent2.putExtra("id", 24);
      localIntent2.putExtra("isZhifubao", this.isZhifuBao3);
      localIntent2.putExtra("isWeixin", this.isWeixin3);
      localIntent2.putExtra("listobj", (Serializable)this.mXianShangList);
      startActivity(localIntent2);
      return;
    case 25:
    }
    Intent localIntent1 = new Intent(this, weixinpayActivity.class);
    localIntent1.putExtra("type", "weixin");
    localIntent1.putExtra("paytype", "25");
    localIntent1.putExtra("id", 25);
    localIntent1.putExtra("isZhifubao", this.isZhifuBao3);
    localIntent1.putExtra("isWeixin", this.isWeixin3);
    localIntent1.putExtra("listobj", (Serializable)this.mXianShangList);
    startActivity(localIntent1);
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    this.context = this;
    this.contentView = LayoutInflater.from(this.context).inflate(2130903051, null);
    setContentView(this.contentView);
    CustomApplication.app.addActivity(this);
    this.mLoginType = CustomApplication.app.preferencesUtil.getValue(AppConstants.LOGIN_TYPE, "1");
    this.guid = CustomApplication.app.userBaseBean.getGuid();
    init();
    getoauthuserstate();
    getPayTypeList();
  }

  public void onDestroy()
  {
    super.onDestroy();
  }

  public void onItemClick(AdapterView<?> paramAdapterView, View paramView, int paramInt, long paramLong)
  {
    switch (paramAdapterView.getId())
    {
    default:
      return;
    case 2131099805:
      PayTypeBean localPayTypeBean2 = (PayTypeBean)((Adapter)paramAdapterView.getAdapter()).getItem(paramInt);
      int i = 0;
      if (i >= this.mAdapter.getmCheckList().size())
      {
        this.mAdapter.notifyDataSetChanged();
        this.zhifuType = Integer.valueOf(localPayTypeBean2.getIsSdkEffective()).intValue();
        return;
      }
      if (i == paramInt)
        this.mAdapter.getmCheckList().set(paramInt, Boolean.valueOf(true));
      while (true)
      {
        i++;
        break;
        this.mAdapter.getmCheckList().set(i, Boolean.valueOf(false));
      }
    case 2131099806:
    }
    PayTypeBean localPayTypeBean1 = (PayTypeBean)((Adapter)paramAdapterView.getAdapter()).getItem(paramInt);
    if ((this.mLoginType.equals("2")) && (this.state == 1))
    {
      showNewuserRegisterPopwindow();
      return;
    }
    Intent localIntent = new Intent();
    localIntent.setClass(this, GetZZZHlistActivity.class);
    localIntent.putExtra("id", Integer.valueOf(localPayTypeBean1.getIsSdkEffective()));
    localIntent.putExtra("Ctype", localPayTypeBean1.getIsSdkEffective());
    localIntent.putExtra("payTypeBean", localPayTypeBean1);
    startActivity(localIntent);
  }

  @SuppressLint({"NewApi"})
  public void setTitle(int paramInt1, int paramInt2, int paramInt3, String paramString, int paramInt4, int paramInt5, int paramInt6, int paramInt7, boolean paramBoolean)
  {
    View localView = this.contentView.findViewById(2131099716);
    if (paramBoolean)
      localView.setVisibility(0);
    while (true)
    {
      ((TextView)localView.findViewById(2131099701)).setText(paramString);
      ((TextView)localView.findViewById(2131099700)).setVisibility(paramInt1);
      ImageView localImageView = (ImageView)localView.findViewById(2131099699);
      localImageView.setVisibility(paramInt2);
      localImageView.setOnClickListener(this.onClickListener);
      localImageView.setImageResource(paramInt3);
      ((TextView)localView.findViewById(2131099702)).setVisibility(paramInt5);
      ((ImageView)localView.findViewById(2131099703)).setVisibility(8);
      this.iv_title_right = ((ImageView)localView.findViewById(2131099704));
      this.iv_title_right.setVisibility(paramInt6);
      this.iv_title_right.setImageResource(paramInt7);
      return;
      localView.setVisibility(8);
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.tabChongZhi.ChongzhiActivity2
 * JD-Core Version:    0.6.2
 */